package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * StExamInfoId entity. @author MyEclipse Persistence Tools
 */

public class StExamInfoId implements java.io.Serializable {

	// Fields

	private Integer examId;
	private String examName;
	private String examMemo;
	private Timestamp examStartTime;
	private Timestamp examEndTime;
	private Timestamp examCreateTime;
	private Integer stCourseId;
	private Integer examNeedTime;
	private Integer testid;
	private Integer isDeleted;

	// Constructors

	/** default constructor */
	public StExamInfoId() {
	}

	/** minimal constructor */
	public StExamInfoId(Integer examId, String examName) {
		this.examId = examId;
		this.examName = examName;
	}

	/** full constructor */
	public StExamInfoId(Integer examId, String examName, String examMemo,
			Timestamp examStartTime, Timestamp examEndTime,
			Timestamp examCreateTime, Integer stCourseId, Integer examNeedTime,
			Integer testid, Integer isDeleted) {
		this.examId = examId;
		this.examName = examName;
		this.examMemo = examMemo;
		this.examStartTime = examStartTime;
		this.examEndTime = examEndTime;
		this.examCreateTime = examCreateTime;
		this.stCourseId = stCourseId;
		this.examNeedTime = examNeedTime;
		this.testid = testid;
		this.isDeleted = isDeleted;
	}

	// Property accessors

	public Integer getExamId() {
		return this.examId;
	}

	public void setExamId(Integer examId) {
		this.examId = examId;
	}

	public String getExamName() {
		return this.examName;
	}

	public void setExamName(String examName) {
		this.examName = examName;
	}

	public String getExamMemo() {
		return this.examMemo;
	}

	public void setExamMemo(String examMemo) {
		this.examMemo = examMemo;
	}

	public Timestamp getExamStartTime() {
		return this.examStartTime;
	}

	public void setExamStartTime(Timestamp examStartTime) {
		this.examStartTime = examStartTime;
	}

	public Timestamp getExamEndTime() {
		return this.examEndTime;
	}

	public void setExamEndTime(Timestamp examEndTime) {
		this.examEndTime = examEndTime;
	}

	public Timestamp getExamCreateTime() {
		return this.examCreateTime;
	}

	public void setExamCreateTime(Timestamp examCreateTime) {
		this.examCreateTime = examCreateTime;
	}

	public Integer getStCourseId() {
		return this.stCourseId;
	}

	public void setStCourseId(Integer stCourseId) {
		this.stCourseId = stCourseId;
	}

	public Integer getExamNeedTime() {
		return this.examNeedTime;
	}

	public void setExamNeedTime(Integer examNeedTime) {
		this.examNeedTime = examNeedTime;
	}

	public Integer getTestid() {
		return this.testid;
	}

	public void setTestid(Integer testid) {
		this.testid = testid;
	}

	public Integer getIsDeleted() {
		return this.isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof StExamInfoId))
			return false;
		StExamInfoId castOther = (StExamInfoId) other;

		return ((this.getExamId() == castOther.getExamId()) || (this
				.getExamId() != null
				&& castOther.getExamId() != null && this.getExamId().equals(
				castOther.getExamId())))
				&& ((this.getExamName() == castOther.getExamName()) || (this
						.getExamName() != null
						&& castOther.getExamName() != null && this
						.getExamName().equals(castOther.getExamName())))
				&& ((this.getExamMemo() == castOther.getExamMemo()) || (this
						.getExamMemo() != null
						&& castOther.getExamMemo() != null && this
						.getExamMemo().equals(castOther.getExamMemo())))
				&& ((this.getExamStartTime() == castOther.getExamStartTime()) || (this
						.getExamStartTime() != null
						&& castOther.getExamStartTime() != null && this
						.getExamStartTime()
						.equals(castOther.getExamStartTime())))
				&& ((this.getExamEndTime() == castOther.getExamEndTime()) || (this
						.getExamEndTime() != null
						&& castOther.getExamEndTime() != null && this
						.getExamEndTime().equals(castOther.getExamEndTime())))
				&& ((this.getExamCreateTime() == castOther.getExamCreateTime()) || (this
						.getExamCreateTime() != null
						&& castOther.getExamCreateTime() != null && this
						.getExamCreateTime().equals(
								castOther.getExamCreateTime())))
				&& ((this.getStCourseId() == castOther.getStCourseId()) || (this
						.getStCourseId() != null
						&& castOther.getStCourseId() != null && this
						.getStCourseId().equals(castOther.getStCourseId())))
				&& ((this.getExamNeedTime() == castOther.getExamNeedTime()) || (this
						.getExamNeedTime() != null
						&& castOther.getExamNeedTime() != null && this
						.getExamNeedTime().equals(castOther.getExamNeedTime())))
				&& ((this.getTestid() == castOther.getTestid()) || (this
						.getTestid() != null
						&& castOther.getTestid() != null && this.getTestid()
						.equals(castOther.getTestid())))
				&& ((this.getIsDeleted() == castOther.getIsDeleted()) || (this
						.getIsDeleted() != null
						&& castOther.getIsDeleted() != null && this
						.getIsDeleted().equals(castOther.getIsDeleted())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getExamId() == null ? 0 : this.getExamId().hashCode());
		result = 37 * result
				+ (getExamName() == null ? 0 : this.getExamName().hashCode());
		result = 37 * result
				+ (getExamMemo() == null ? 0 : this.getExamMemo().hashCode());
		result = 37
				* result
				+ (getExamStartTime() == null ? 0 : this.getExamStartTime()
						.hashCode());
		result = 37
				* result
				+ (getExamEndTime() == null ? 0 : this.getExamEndTime()
						.hashCode());
		result = 37
				* result
				+ (getExamCreateTime() == null ? 0 : this.getExamCreateTime()
						.hashCode());
		result = 37
				* result
				+ (getStCourseId() == null ? 0 : this.getStCourseId()
						.hashCode());
		result = 37
				* result
				+ (getExamNeedTime() == null ? 0 : this.getExamNeedTime()
						.hashCode());
		result = 37 * result
				+ (getTestid() == null ? 0 : this.getTestid().hashCode());
		result = 37 * result
				+ (getIsDeleted() == null ? 0 : this.getIsDeleted().hashCode());
		return result;
	}

}